<div class="detail">
	<ul class="thumbnail-list">
		<?php foreach($contents as $key => $content): ?>
		<li <?php echo ($key==0)?'class="first"':'' ?>>
			<a href="contents/view/<?php echo $content->id ?>">
			<?php if($key==0): ?>
			<img class="img" src="<?php echo (is_file('uploads/content/thumbnail/'.$content->image))? 'uploads/content/thumbnail/'.$content->image : 'media/images/dummy/big.jpg' ?>" />
			<?php else: ?>
			<img class="img" src="<?php echo (is_file('uploads/content/thumbnail/small/'.$content->image))? 'uploads/content/thumbnail/small/'.$content->image : 'media/images/dummy/small.jpg' ?>" />
			<?php endif; ?>
			</a>
			<div>
			<a href="contents/view/<?php echo $content->id ?>"><?php echo lang_decode($content->title) ?></a>
			</div>
		</li>
		<?php endforeach; ?>
		<div class="clear"></div>
	</ul>
	<div class="clear"></div>
	<a class="more" href="contents/index/<?php echo $contents->category_id ?>">ดูทั้งหมด</a>
</div>
